package smashedapples.forms
{
	import mx.controls.List;

	public class List extends mx.controls.List implements IFormControl
	{

		public function List()
		{
			super();
		}


		private var _cProperty:String = "dataProvider";

		public function get cProperty():String
		{
			return _cProperty;
		}

		public function set cProperty( value:String ):void
		{
			_cProperty = value;
		}

		private var _cName:String;

		public function get cName():String
		{
			if( _cName != null )
				return _cName;
			return this.id as String;
		}

		public function set cName( value:String ):void
		{
			_cName = value;
		}

		public function get cValue():*
		{
			return this[ _cProperty ];
		}

		public function set cValue( value:* ):void
		{
			this[ this._cProperty ] = value;
		}

		private var _cDefault:* = [];

		public function get cDefault():*
		{
			return[];
		}

		public function set cDefault( value:* ):void
		{
			this._cDefault = value;
		}



		private var _cInclude:Boolean = true;

		public function get cInclude():Boolean
		{
			return _cInclude;
		}

		public function set cInclude( value:Boolean ):void
		{
			_cInclude = value;
		}

		public function cReset():void
		{
			this.cValue = this.cDefault;
		}

		private var _cCache:Boolean = false;

		public function get cCache():Boolean
		{
			return _cCache;
		}

		public function set cCache( value:Boolean ):void
		{
			_cCache = value;
		}

	}
}